package com.zmc.third.infrastructure.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;

/**
 * 三方物流信息表
 * 
 * @author zmc
 * @email 
 * @date 2025-02-12 11:01:08
 */
@Data
@TableName("tps_logistics_info")
public class LogisticsInfoEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId
	private Long id;
	/**
	 * 订单号
	 */
	private String orderSn;
	/**
	 * 物流单号
	 */
	private String wmsOrderSn;
	/**
	 * 三方订单号
	 */
	private String thirdOrderSn;
	/**
	 * 交易内容
	 */
	private String result;
	/**
	 * 物流单状态(1：初始化；2：待发货；3：发货中；4：已完成；5：已取消；6：创建订单失败)
	 */
	private String wmsStatus;

	private String routeInfo;

	private LocalDate routeLastUpdateTime;
	/**
	 * 创建时间
	 */
	@TableField(value = "create_time", fill = FieldFill.INSERT)
	private LocalDateTime createTime;
	/**
	 * 修改时间
	 */
	@TableField(value = "update_time", fill = FieldFill.UPDATE)
	private LocalDateTime updateTime;

}
